/*
Sequences: Vec, VecDeque, linked_list
Maps: HashMap, BTreeMap
Sets: HashSet, BTreeSet
Misc: BinaryHeap
*/

#[allow(dead_code)]
pub fn stdx_examples_linklist() {
    use std::collections::LinkedList;
    let mut list: LinkedList<i32> = LinkedList::new();
    list.push_back(1);
    list.push_back(2);
    list.push_front(0);

    // AUTO_COMMENT: 迭代与收集为 Vec
    let v: Vec<_> = list.iter().copied().collect();

    // CRITICAL: pop_front/pop_back 示例
    let _front = list.pop_front();
    let _back = list.pop_back();

    let _ = v;
}
